package cn.com.homeyoda.aimate.aihealth.ui.game;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import cn.com.homeyoda.aimate.aihealth.R;

public class GameAdapter extends BaseQuickAdapter<GameBean, BaseViewHolder> {

    public GameAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder holder, GameBean item) {
        holder.setBackgroundRes(R.id.iv_game_circle, item.getImgResId());
        holder.setText(R.id.tv_game_title, item.getTitle());
        holder.addOnClickListener(R.id.btn_start_game);
    }
}
